package com.ls.product.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaotang
 * @since 2023-04-07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_product")
@ApiModel(value = "Product对象", description = "")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("名称")
      private String productName;

      @ApiModelProperty("状态")
      private Integer status;

      @ApiModelProperty("单价")
      private BigDecimal price;

      @ApiModelProperty("描述")
      private String productDesc;

      @ApiModelProperty("标题")
      private String caption;

      @ApiModelProperty("库存")
      private Integer stock;
}
